
//
//  QKGroupListCell.m
//  QKGroupListExample
//
//  Created by 丁乾坤 on 2016/12/8.
//  Copyright © 2016年 丁乾坤. All rights reserved.
//

#import "QKGroupListCell.h"
#import "UIView+QKFrame.h"

@implementation QKGroupListCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageView.image = [UIImage imageNamed:@"womenavar"];
        self.textLabel.textColor = [UIColor lightGrayColor];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    CGFloat iamgeVTop = 7.f; //头像顶部的边距
    CGFloat textLabelLeftMargin = 10.f; //文本左边的边距
    CGFloat separatorMarginLeft = 20.f; //分割线左边的编剧
    self.imageView.qk_y = iamgeVTop;
    self.imageView.qk_height = self.qk_height - iamgeVTop * 2;
    self.imageView.qk_width = self.imageView.qk_height;
    self.imageView.layer.masksToBounds = YES;
    self.imageView.layer.cornerRadius =  23.f;
    self.textLabel.qk_x = self.imageView.qk_right + textLabelLeftMargin;
    self.separatorInset = UIEdgeInsetsMake(0, separatorMarginLeft, 0, 0);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}



@end
